<?php
    echo $this->get_tag("form", array("class" => "app_form","method"=>"post","action"=>$this->baseurl("/member/change-password")));
    echo $this->callElement("default/tools/tool_bar",array("buttons"=>array( array("type"=>"back"),array("type"=>"save")) ,"title" => "Change Password")); 
    
    if( !empty($message)){ echo $this->callElement('default/tools/message', array('caption' =>'Message','type' => $message['type'], 'message' => $message['msg']));}
    $Grid = App::Module('DataGrid')
               ->setDisplay('FormListing')
               ->addRow( "Old password", App::Load("Helper/Html")->passwordTag("data[Member][old_password]","",array("id"=>"old_password","class"=>"app_input") ))
               ->addRow("New password", App::Load("Helper/Html")->passwordTag("data[Member][new_password]","",array("id"=>"old_password","class"=>"app_input") ))
               ->addRow("Confirm Newpassword", App::Load("Helper/Html")->passwordTag("data[Member][re_new_password]","",array("id"=>"old_password","class"=>"app_input")))
               ->Render(); 
    echo $this->callElement("default/tools/tool_bar",array("buttons"=>array(array("type"=>"back"),array("type"=>"save")) ,"title" => NULL)); 
    echo $this->get_tag("/form");
?>